package mn.idax.exchange.otc.service;

import mn.idax.exchange.otc.domain.CommentShowResultDTO;
import mn.idax.exchange.otc.entity.OTCComment;
import mn.idax.exchange.otc.exception.IdaxException;
import mn.idax.exchange.otc.vo.*;

import java.util.List;

/**
 * Create by jack_huang on 2018/8/6
 * 信用评价
 */
public interface OTCCommentService {

    Boolean createComment(String orderNum, Integer commentType, String content, Integer userid) throws IdaxException;

    OTCComment getCommentByNumAndCommentUserId(String orderNum, Integer userid);

    Boolean deleteComment(String orderNum, Integer userid) throws IdaxException;

    /**
     *
     * 功能描述:
     *      修改评价等级
     * @param:
     * @return:
     * @auther: dison
     * @date: 2018/8/24 16:23
     */
    Boolean updateCommentLevel(String orderNum, Integer commentType,  Integer userid, String content) throws IdaxException;

    CommentShowResultDTO getCommentPage(GetCommentPageDTO getCommentPageDTO);

    //评论分页用户被评论的次数
//    UserCommentDTO getUserBeCommentNumbers(Integer userid);

    //订单详情中的评论信息
    OrderDetailCommentDTO getOrderDetailCommentInfo(Integer userid,String orderNum);

    //个人中心 我收到的所有评价
    List<UserBeCommentResult> getOthersCommentMe(Integer userId);

    List<OTCComment> getCommentByOrderNum(String orderNum);
}
